package com.tinyseed.emcp.api.productionRule.service;

import com.tinyseed.emcp.api.productionRule.bean.DeviceNodeOutputDTO;
import com.tinyseed.emcp.api.productionRule.bean.DistributionInputDTO;
import com.tinyseed.emcp.api.productionRule.bean.DistributionOutputDTO;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

public interface DistributionService {
    List<DeviceNodeOutputDTO> findOrganizeTree();

    List<Map<String, String>> queryReductionList();

    List<DistributionOutputDTO> findAllByProducesetId(Long producesetId);

//    List<DistributionOutputDTO> findAllByMonitorId(Long monitorId);

    void saveDistributions(DistributionInputDTO distributionInputDTO);

    void saveRules(List<DistributionInputDTO> distributionInputDTOList);

    void deleteAllByProducesetIdIsIn(List<Long> producesetIds);

    Page<DistributionOutputDTO> getDistributionRules(int current, int size);

}
